package com.itheima.apis.component;

import com.car.model.common.dtos.ResponseResult;
import com.car.model.component.dtos.ComClassifyDto;
import com.car.model.component.pojos.ComClassify2;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "二级分类", tags = "classify2", description = "配件二级分类API")
public interface ComClassify2ControllerApi {

    /**
     * 根据条件分页查询
     * @return
     */
    @ApiOperation("分页条件查询")
    ResponseResult findByPage(ComClassifyDto dto);

    /**
     *修改配件分类
     * @param classify
     * @return
     */
    @ApiOperation("修改二级配件分类")
    ResponseResult update(ComClassify2 classify);

    /**
     * 根据id删除分类
     * @param id
     * @return
     */
    @ApiOperation("根据id删除配件二级分类")
    ResponseResult delete(Integer id);

    /**
     * 新增配件分类
     * @param classify
     * @return
     */
    @ApiOperation("新增配件二级分类")
    ResponseResult save(ComClassify2 classify);
}
